package gui_classes;

import java.awt.*;

import javax.swing.*;

import domain.*;

public class DoctorPage extends DERPBase {

	private DoctorPanel dpanel;

	/**
	 * Create the panel.
	 */
	public DoctorPage(Doctor doc) {

		setPreferredSize(new Dimension(600,300));
		setLayout(new BorderLayout());
	
		dpanel = new DoctorPanel(doc);
		add(dpanel, BorderLayout.WEST);
		
		setPrevious(GUI_Main.lpanel);
	}

	public void display()
	{
		GUI_Main.replacePanel(this);
	}
	
	public DoctorPanel getDPanel()
	{
		return this.dpanel;
	}
}
